import http from "@/config/config";


const ImgApi = {
   /**
    * 删除用户图片
    * @param img 
    * @returns 
    */
   deleteUserImg:(img:String)=>{
      return http.delete(`/userimg/${img}`).then(res=>{
         return res.data;
      })
   },
   
   /**
    * 删除套餐图片
    * @param img 
    * @returns 
    */
   deleteTaocanImg:(img:String)=>{
      return http.delete(`/taocanimg/${img}`).then(res=>{
         return res.data;
      })
   },
     /**
    * 删除菜品图片
    * @param img 
    * @returns 
    */
     deleteDishImg:(img:String)=>{
      return http.delete(`/dishimg/${img}`).then(res=>{
         return res.data;
      })
   }

}

export default ImgApi;